package siteManage

import (
	"main/src/utils"
	"time"
)

var SiteRoute = utils.Routes{
	BaseUrl: "site",
	Routes: []*utils.Route{
		{
			Path:   "/get",
			Method: "POST",
			View:   GetDomain,
			Body: GetSiteDto{
				GetDataLimitDto: utils.GetDataLimitDto{
					PageNum:  0,
					PageSize: 0,
				},
			},
			ResponseJson: utils.GetDataLimitResponseDto{
				Total:        0,
				Page:         0,
				NextPage:     0,
				PreviousPage: 0,
				Data: []SiteInfoResponseDto{
					{
						Id:        0,
						UserID:    0,
						URL:       "",
						IsActive:  false,
						CreatedAt: time.Time{},
						UpdatedAt: time.Time{},
					},
				},
			},
		},
		{
			Path:   "/create",
			Method: "POST",
			View:   CreateDomain,
			Body: CreateSiteDto{
				URL: "",
				Cat: 0,
			},
			ResponseJson: SiteInfoResponseDto{
				Id:        0,
				UserID:    0,
				URL:       "",
				IsActive:  false,
				CreatedAt: time.Time{},
				UpdatedAt: time.Time{},
			},
		},
		{
			Path:   "/update",
			Method: "POST",
			View:   UpdateDomain,
			Body: UpdateSiteDto{
				Id:  0,
				URL: "",
			},
			ResponseJson: SiteInfoResponseDto{
				Id:        0,
				UserID:    0,
				URL:       "",
				IsActive:  false,
				CreatedAt: time.Time{},
				UpdatedAt: time.Time{},
			},
		},
		{
			Path:         "/delete",
			Method:       "POST",
			View:         DeleteDomain,
			Body:         DeleteSiteDto{Id: 0},
			ResponseJson: nil,
		},
		{
			Path:   "/export",
			Method: "POST",
			View:   ExportFileByDomainView,
			Body: ExportFileByDomain{
				File: nil,
				Cat:  0,
			},
			ResponseJson: []SiteInfoResponseDto{
				{
					Id:        0,
					UserID:    0,
					URL:       "",
					IsActive:  false,
					Cat:       0,
					CreatedAt: time.Time{},
					UpdatedAt: time.Time{},
				},
			},
		},
	},
}
